//
//  BaseViewController.h
//  专注
//
//  Created by 专注 on 2021/3/11.
//  Copyright © 2021 专注. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseNavigationBar.h"

NS_ASSUME_NONNULL_BEGIN
@protocol  BBBaseViewControllerDataSource<NSObject>
@optional
-(NSString*)set_title;

-(UIView*)set_titleView;

-(UIButton*)set_leftButton;
-(NSArray*)set_leftButtonArr;
-(UIImage*)set_leftBarButtonItemWithImage;

-(UIButton*)set_rightButton;
-(NSArray*)set_rightButtonArr;
-(UIImage*)set_rightBarButtonItemWithImage;
@end


@protocol BBBaseViewControllerDelegate <NSObject>

@optional
-(void)left_button_event:(UIButton *)sender;
-(void)right_button_event:(UIButton *)sender;
-(void)title_click_event:(UIView *)sender;
@end

@interface BaseViewController : UIViewController<BBBaseViewControllerDataSource , BBBaseViewControllerDelegate>
-(void)set_title:(NSString *)title;
-(void)set_titleView:(UIView *)view;


/** 内容视图 ，顶部为导航栏 */
@property(nonatomic,strong) UIView *contentView;
/** 内容视图 ，顶部为安全距离 */
@property(nonatomic,strong) UIView *contentFullView;

/** 子控制器初始化视图 */
-(void)initView;
/** 子控制第一次加载数据了 */
-(void)initData;
/** 子控制每次展示页面刷新数据 */
-(void)initReloadData;
/** 控制器主动销毁的主动清理 */
-(void)releseViewController;
/** 修改导航栏颜色 */
-(void)setNavigationColor:(UIColor *)color navigationLienColor:(UIColor *)lienColor;
@end
NS_ASSUME_NONNULL_END


